package xcmg.device.dao.mapper.agent;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.agent.AgentAllotDO;
import xcmg.device.dao.entity.agent.AgentAllotExportDO;
import xcmg.device.service.vo.agent.AgentAllotVO;

import java.util.List;

@Mapper
public interface AgentAllotMapper {
    int deleteByPrimaryKey(String id);

    int insert(AgentAllotDO record);

    AgentAllotDO selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(AgentAllotDO record);

    List<AgentAllotDO> list(AgentAllotVO condition);

    List<AgentAllotDO> exportList(AgentAllotVO condition);

    List<String> findOrderList(@Param("ids") List<String> ids);

    int remove(@Param("ids") List<String> ids);

    List<AgentAllotDO> findByIds(@Param("ids") List<String> ids);

    AgentAllotDO selectByAllotOrder(@Param("allotOrder") String allotOrder, @Param("orgId") String orgId);

    List<AgentAllotExportDO> findListForExport(@Param("ids") List<String> ids);

    int findCountForExportAll(AgentAllotVO model);

    List<AgentAllotExportDO> findListForExportAll(AgentAllotVO model);

    int findNumForDelete(@Param("ids") List<String> ids);

    int updateInStatus(@Param("status") int status,@Param("billNo") String billNo);
    int updateOutStatus(@Param("status") int status,@Param("billNo") String billNo);
}